package org.liziyi.huffman.gui;

import javax.swing.*;

/**
 * 文件展示，与编解码界面
 *
 * @author liziyi
 */
public class FileDisplayGUI {
    private JPanel baseJPanel;
    private JScrollPane jscrollPane;
    private JTextArea fileJTextArea;
    private JButton encodeJButton;
    private JButton decodeJButton;
    private JButton showTreeJButton;
    private JButton back2ChooseFileJButton;
    private JButton showCharMapJButton;

    public JButton getEncodeJButton() {
        return encodeJButton;
    }

    public JButton getDecodeJButton() {
        return decodeJButton;
    }

    public JButton getShowTreeJButton() {
        return showTreeJButton;
    }

    public JButton getBack2ChooseFileJButton() {
        return back2ChooseFileJButton;
    }

    public JButton getShowCharMapJButton() {
        return showCharMapJButton;
    }

    public JPanel getBaseJPanel() {
        return baseJPanel;
    }

    public JScrollPane getJscrollPane() {
        return jscrollPane;
    }

    public JTextArea getFileJTestArea() {
        return fileJTextArea;
    }

    /**
     * swing ui designer 的 custom create 选项。该方法体中需要自己创建该组件，以及其父组件，并可进行定制化配置
     */
//    private void createUIComponents() {
//        baseJPanel = new JPanel();
//        jscrollPane = new JScrollPane();
//        fileJTextArea = new JTextArea();
//        jscrollPane.add(fileJTextArea);
//        baseJPanel.add(jscrollPane);
//    }
}
